#include "constants.h";

if (isServer) then {
	diag_log Format["(%1)[%2]: %3",diag_tickTime,"isladuala.server.sqf","Starting Isla Duala map server config"];
	
	d_allmen_E = [
		["Guerrila","BIS_TK_GUE","Infantry","TK_GUE_Group"] call XfGetConfigGroup,
		["Guerrila","BIS_TK_GUE","Infantry","TK_GUE_GroupWeapons"] call XfGetConfigGroup,
		["Guerrila","BIS_TK_GUE","Infantry","TK_GUE_Patrol"] call XfGetConfigGroup,
		["Guerrila","BIS_TK_GUE","Infantry","TK_GUE_ATTeam"] call XfGetConfigGroup,
		["Guerrila","BIS_TK_GUE","Infantry","TK_GUE_AATeam"] call XfGetConfigGroup,
		["Guerrila","BIS_TK_GUE","Infantry","TK_GUE_SniperTeam"] call XfGetConfigGroup
	];
	d_allmen_W = [
		["West","USMC","Infantry","USMC_InfSquad"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FireTeam"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FireTeam_MG"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FireTeam_AT"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FireTeam_Support"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_HeavyATTeam"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_SniperTeam"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FRTeam"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FRTeam_Razor"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSquad"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSquad_Weapons"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSection_AT"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSection_AA"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSection_MG"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSection_Patrol"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_SniperTeam"] call XfGetConfigGroup
	];
	d_allmen_G = [
		["Guerrila","GUE","Infantry","GUE_InfSquad"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfSquad_Assault"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfSquad_Weapons"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfTeam_1"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfTeam_2"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfTeam_AT"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_GrpInf_TeamAA"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_GrpInf_TeamSniper"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_MilitiaSquad"] call XfGetConfigGroup
	];

	d_specops_E = ["TK_Special_Forces_EP1","TK_Special_Forces_MG_EP1","TK_Special_Forces_EP1","TK_Special_Forces_EP1","TK_Special_Forces_TL_EP1","TK_Special_Forces_TL_EP1","TK_Special_Forces_MG_EP1","TK_Soldier_Sniper_EP1"];
	// d_specops_W = ["FR_TL","FR_AC","FR_GL","FR_Commander","FR_AR","FR_R","FR_Corpsman","FR_Marksman","FR_Sapper","FR_Assault_R","FR_Assault_GL"];
	// d_specops_G = ["GUE_Soldier_Sab","GUE_Soldier_Scout","GUE_Soldier_Scout","GUE_Soldier_Scout"];

	d_snipers_E = ["TK_Soldier_Sniper_EP1","TK_GUE_Soldier_Sniper_EP1","TK_INS_Soldier_Sniper_EP1","TK_GUE_Soldier_Sniper_EP1","TK_INS_Soldier_3_EP1","TK_Soldier_Spotter_EP1"];
	// d_snipers_W = ["FR_Marksman","FR_R","USMC_SoldierM_Marksman","USMC_SoldierS_Sniper","USMC_SoldierS_Spotter","USMC_SoldierS_SniperH","USMC_Soldier_AR"];
	// d_snipers_G = ["GUE_Soldier_Sniper","GUE_Soldier_AR","GUE_Soldier_Scout","GUE_Woodlander2"];

	d_veh_a_E = [
			["T55_TK_EP1","T34_TK_EP1"],
			["BRDM2_TK_EP1","BRDM2_ATGM_TK_EP1"],
			["BTR40_MG_TK_INS_EP1","BTR60_TK_EP1"],
			["BTR40_MG_TK_INS_EP1","Ural_ZU23_TK_EP1"],
			["Ural_ZU23_TK_EP1"],
			["Offroad_DSHKM_INS","Pickup_PK_INS","LandRover_MG_TK_EP1","LandRover_SPG9_TK_EP1"],
			["DSHKM_TK_INS_EP1","SPG9_TK_INS_EP1","AGS_TK_EP1","DSHkM_Mini_TriPod_TK_INS_EP1","SPG9_TK_INS_EP1","KORD_high_TK_EP1","KORD_TK_EP1"],
			["ZU23_TK_EP1"],
			["D30_TK_EP1","GRAD_TK_EP1"],
			["UralRefuel_TK_EP1"],
			["UralRepair_TK_EP1"],
			["UralReammo_TK_EP1"],
			["V3S_TK_EP1"]
		];

	// d_veh_a_W = [
			// ["M1A1","M1A2_TUSK_MG","T72_CDF"],
			// ["LAV25","BRDM2_CDF","BRDM2_ATGM_CDF"],
			// ["AAV","BMP2_CDF"],
			// ["HMMWV_Avenger","ZSU_CDF"],
			// ["HMMWV_M2","HMMWV_MK19","HMMWV_TOW","UAZ_AGS30_CDF"],
			// ["HMMWV_M2","HMMWV_Armored","HMMWV_TOW","HMMWV_M2","UAZ_AGS30_CDF","HMMWV_M2","UAZ_MG_CDF"],
			// ["M2StaticMG","MK19_TriPod","M2HD_mini_TriPod","M252","M2StaticMG","TOW_TriPod","M2StaticMG"],
			// ["Stinger_Pod"],
			// ["M119","GRAD_CDF"],
			// ["MtvrRefuel"],
			// ["MtvrRepair"],
			// ["MtvrReammo"]
	// ];
	// d_veh_a_G = [
		// ["T34","T72_Gue","T34"],
		// ["BMP2_Gue"],
		// ["BRDM2_Gue"],
		// ["Ural_ZU23_Gue"],
		// ["Offroad_DSHKM_Gue","Offroad_SPG9_Gue"],
		// ["Offroad_DSHKM_Gue","Offroad_SPG9_Gue","Offroad_DSHKM_Gue"],
		// ["DSHKM_Gue","2b14_82mm_GUE","DSHKM_Gue","SPG9_Gue","DSHKM_Gue"],
		// ["ZU23_Gue"],
		// ["ZU23_Gue"],
		// ["V3S_Refuel_TK_GUE_EP1"],
		// ["V3S_Repair_TK_GUE_EP1"],
		// ["V3S_Reammo_TK_GUE_EP1"]
	// ];

	DM_Mission_KamikazeUnit = true;
	
	d_civilian_E = ["TK_CIV_Takistani01_EP1","TK_CIV_Takistani02_EP1","TK_CIV_Takistani03_EP1","TK_CIV_Takistani04_EP1","TK_CIV_Takistani05_EP1","TK_CIV_Takistani06_EP1","TK_CIV_Woman01_EP1","TK_CIV_Woman02_EP1","TK_CIV_Woman03_EP1"];
	d_civilian_W = ["Functionary1","Damsel1","Functionary2","Damsel2","Citizen4","Damsel4","Citizen3","Hooker1","Hooker2","Hooker3","Hooker4","Hooker5"];
	d_civilian_G = ["TK_CIV_Takistani01_EP1","TK_CIV_Takistani02_EP1","TK_CIV_Takistani03_EP1","TK_CIV_Takistani04_EP1","TK_CIV_Takistani05_EP1","TK_CIV_Takistani06_EP1","TK_CIV_Woman01_EP1","TK_CIV_Woman02_EP1","TK_CIV_Woman03_EP1"];

	d_special_mission_characters_E = [];
	d_special_mission_characters_E set [XF_MISSION_CHAR_CIVILIAN_WOMEN	, ["TK_CIV_Woman01_EP1","TK_CIV_Woman02_EP1","TK_CIV_Woman03_EP1"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_CIVILIAN_MEN	, ["TK_CIV_Takistani01_EP1","TK_CIV_Takistani02_EP1","TK_CIV_Takistani03_EP1","TK_CIV_Takistani04_EP1","TK_CIV_Takistani05_EP1","TK_CIV_Takistani06_EP1"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_CIVILIAN_OFFICIAL, ["Functionary1","Functionary2"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_CIVILIAN_CRIMINAL, ["Profiteer1","Profiteer2","Profiteer3"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_MILITARY_OFFICER, ["TK_Aziz_EP1","TK_Soldier_Officer_EP1"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_MILITARY_PILOT, ["TK_CIV_Worker02_EP1"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_MILITARY_CREW, ["TK_GUE_Soldier_2_EP1","TK_GUE_Soldier_4_EP1"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_MILITARY_SOLDIER, ["TK_GUE_Soldier_2_EP1"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_SPY, ["TK_GUE_Soldier_3_EP1"]];  
	d_special_mission_characters_E set [XF_MISSION_CHAR_INFORMER, ["TK_GUE_Warlord_EP1","TK_INS_Bonesetter_EP1"]];  
	
	// If you want to change from the default.
	// if (isnil "d_airki_attack_plane") then {
		// // type of enemy plane that will fly over the main target
		// d_airki_attack_plane = switch (d_enemy_side) do {
			// case "EAST": {["Su34","Su39"]};
			// case "WEST": {["A10","AV8B2","AV8B","F35B"]};
			// default {[]};
		// };
	// };	

	// If you want to change from the default.
	// type of enemy chopper that will fly over the main target
	d_airki_attack_chopper = switch (d_enemy_side) do {
		case "EAST": {["UH1H_TK_GUE_EP1"]};
		case "WEST": {["AH1Z","AH64D","ACE_AH1W_AGM_W","ACE_AH1W_AGM_D"]};
		default {[]};
	};
	
	// If you want to change from the default
	if (isnil "d_transport_chopper") then {
		d_transport_chopper = switch (d_enemy_side) do {
			case "EAST": {["An2_TK_EP1"]};
			case "WEST": {["MH60S"]};
			case "GUER": {["An2_TK_EP1"]};
		};
	};
	
	// If you want to change from the default
	// if (isnil "d_light_attack_chopper") then {
		// d_light_attack_chopper = switch (d_enemy_side) do {
			// case "EAST": {["Mi17_Ins"]};
			// case "WEST": {["UH1Y"]};
			// default {[]};
		// };
	// };

	// If you want to change from the default
	// if (isnil "x_drop_aircraft") then {
		// x_drop_aircraft = switch (d_own_side) do {
			// case "EAST": {"Mi17_rockets_RU"};
			// case "WEST": {"MH60S"};
			// case "GUER": {"Mi17_Civilian"};
		// };
	// };
	
	// If you want to change from the default
	// if (isnil "x_taxi_aircraft") then {
		// x_taxi_aircraft = switch (d_own_side) do {
			// case "EAST": {["Mi17_rockets_RU"]};
			// case "WEST": {["MH60S"]};
			// case "GUER": {["Mi17_Civilian"]};
		// };
	// };
	
	// Overriding default value
	x_drop_fly_height = 200;
	
	// Overriding default values
	// DM_Reinforcement_Men_Range = [600, 800];
	// DM_Reinforcement_Veh_Range = [900, 1200];
};
